package com.bifang.common.constant.enums.common;
/** 审核状态 */
public enum AuthStatusEnum {
    NODO("0", "未审核"),
    YES("1", "审核通过"),
    NO("2", "审核未通过"),
    BH("3", "驳回");
    private String type;
    private String text;

    AuthStatusEnum(String type, String text) {
        this.type = type;
        this.text = text;
    }

    public String getType() {
        return this.type;
    }

    public String getText() {
        return this.text;
    }

    public static AuthStatusEnum getByType(String type) {
        for (AuthStatusEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
